package com.android.client.event;

import com.android.client.handler.GroupEditorHandler;

public class GroupEditorEvent extends AbstractEvent<GroupEditorHandler> {
	public static Type<GroupEditorHandler> TYPE = new Type<GroupEditorHandler>();
	
	private String tel;
	private Long group;
	
	public GroupEditorEvent(){
		
	}
	
	public GroupEditorEvent(String tel, Long group) {
		super();
		this.tel = tel;
		this.group = group;
	}



	@Override
	protected void dispatch(GroupEditorHandler handler) {
		handler.saveGroupId(this);
	}

	@Override
	public Type<GroupEditorHandler> getAssociatedType() {
		return TYPE;
	}

	public String getTel() {
		return tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	public Long getGroup() {
		return group;
	}

	public void setGroup(Long group) {
		this.group = group;
	}

}
